﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ucRegistration : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnRegister_Click(object sender, EventArgs e)
    {
        LoginBL obj = new LoginBL(txtFirstName.Text, txtLastName.Text, txtMail.Text, txtPassword.Text, rdlGender.SelectedValue, "USER");
        if (obj.Insert())
        {
            Session["User"] = obj;
        }
    }
}